import Mock from 'mockjs2'
import { builder } from '../util'

const page = (params) => {
  const records = [
    { id: 1, name: 'aaa', pic: '111', status: 0, startTime: '2023-09-01', endTime: '2023-10-31' },
    { id: 2, name: 'bbb', pic: '111', status: 0, startTime: '2023-09-15', endTime: '2023-10-25' }
  ]
  return builder({
    data: records,
    'pageSize': 10,
    'pageNo': 1,
    'totalPage': 1,
    'totalCount': 2
  })
}

Mock.mock(/\/api\/banner\/page/, 'get', page)
